import request from '@/utils/request'

// 查询备注列表
export function listRemarks(query) {
  return request({
    url: '/training/remarks/list',
    method: 'get',
    params: query
  })
}

// 查询备注详细
export function getRemarks(remarkId) {
  return request({
    url: '/training/remarks/' + remarkId,
    method: 'get'
  })
}

// 新增备注
export function addRemarks(data) {
  return request({
    url: '/training/remarks',
    method: 'post',
    data: data
  })
}

// 修改备注
export function updateRemarks(data) {
  return request({
    url: '/training/remarks',
    method: 'put',
    data: data
  })
}

// 删除备注
export function delRemarks(remarkId) {
  return request({
    url: '/training/remarks/' + remarkId,
    method: 'delete'
  })
}

// 查询备注
export function getRemarksByParams(query) {
  return request({
    url: '/training/remarks/getRemark',
    method: 'get',
    params: query
  })
}

// 查询备注历史列表
export function listRemarksByParams(query) {
  return request({
    url: '/training/remarks/listHistory',
    method: 'get',
    params: query
  })
}
